package m.server.web.res;

public class ResponseByte {
    private final byte[] bs;
    private final ContentType type;
    private final ContentDisposition disposition;

    public ResponseByte(byte[] bs){
        this(bs,ContentType.FILE,ContentDisposition.inline());
    }
    public ResponseByte(byte[] bs, ContentDisposition disposition){
        this(bs,ContentType.FILE,disposition);
    }
    public ResponseByte(byte[] bs, ContentType type){
        this(bs,type,ContentDisposition.inline());
    }
    public ResponseByte(byte[] bs, ContentType type, ContentDisposition disposition){
        this.bs=bs;
        this.type=type;
        this.disposition=disposition;
    }

    public byte[] getBs() {
        return bs;
    }

    public ContentType getType() {
        return type;
    }

    public ContentDisposition getDisposition() {
        return disposition;
    }
}
